{include file="../../../application/admin/view/public/head" /}
<div class="page-container p10">

    <div class="my-toolbar-box" >
        <div class="center mb10">
            <form class="layui-form " action="{:url()}" method="post">
                <input type="hidden" name="setType" value="{$param.setType}">
                <div class="layui-input-inline">
                    <select class="layui-select" name="app_id">
                        <option value="">全部</option>
                        {foreach $applists as $appId =>$appName}
                                <option value="{$appId}"
                                        {if $appId == $param.app_id}
                                            selected
                                        {/if}
                                >{$appName}</option>

                        {/foreach}
                    </select>
                </div>

                <button class="layui-btn mgl-20 j-search" >查询</button>
            </form>
        </div>
<!--        <blockquote class="layui-elem-quote">-->
<!--            -->
<!--        </blockquote>-->
    </div>
    <div class="layui-btn-group">
        <a data-href="{:url('info')}" data-full="1" class="layui-btn layui-btn-primary j-iframe"><i class="layui-icon">&#xe654;</i>添加</a>
<!--        <a data-href="{:url('del')}" class="layui-btn layui-btn-primary j-page-btns confirm"><i class="layui-icon">&#xe640;</i>删除</a>-->
    </div>
     <form class="layui-form " method="post" id="pageListForm">
         <table class="layui-table" lay-size="sm">
            <thead>
            <tr>
                <th>序号</th>
                <th width="320">应用信息</th>
                <th >赛事数</th>
                <th >影片数</th>
                <th >设备数量</th>
                <th >有效天数</th>
                <th width="140">操作</th>
            </tr>
            </thead>

            {volist name="list" id="vo"}
            <tr>
                <td>{$vo.id}</td>
                <td >{$vo.app_id}<br>{$applists[$vo.app_id]}</td>
                <td >{$vo.zhibo_num}</td>
                <td >{$vo.vod_num}</td>
                <td >{$vo.device_num}</td>
                <td >{$vo.reg_days}</td>
                <td >
                   <a data-href="{:url('list',['review_id'=>$vo.id])}" data-full="1" class="layui-btn layui-btn-primary j-iframe">查看设备列表</a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>

        <div id="pages" class="center"></div>

    </form>
</div>

{include file="../../../application/admin/view/public/foot" /}


<script type="text/javascript">
    var curUrl="{:url('review/index',$param)}";
    layui.use(['laypage', 'layer','laydate'], function() {
        var laypage = layui.laypage
                , layer = layui.layer,laydate=layui.laydate;
        laydate.render({
            elem: '#date'
            ,type: 'date'
        });
        laypage.render({
            elem: 'pages'
            ,count: {$total}
            ,limit: {$limit}
            ,curr: {$page}
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj,first){
                if(!first){
                    location.href = curUrl.replace('%7Bpage%7D',obj.curr).replace('%7Blimit%7D',obj.limit);
                }
            }
        });
    });
</script>
</body>
</html>